export default {
    // 各功能模块的数据字典

    // 储蓄定投-定投周期
    RPDSPTrans: function (data) {
        switch (data) {
            case 'D':
                return "Day";
            case 'M':
                return "month";
            case 'Q':
                return "quarter";
            case 'W':
                return "week";
            case 'Y':
                return "year";
        }
    },

    certTypeDictList: [
        { "key": "0", "value": "Second generation ID card", "bkIdentityType": "0" },
        { "key": "1", "value": "First generation ID card", "bkIdentityType": "0" },
        { "key": "2", "value": "HouserHold Register", "bkIdentityType": "E" },
        { "key": "3", "value": "Chinese passport", "bkIdentityType": "1" },
        { "key": "4", "value": "Foreign passport", "bkIdentityType": "1" },
        { "key": "5", "value": "Military personnel identification card", "bkIdentityType": "2" },
        { "key": "6", "value": "Armed police identity card", "bkIdentityType": "A" },
        { "key": "7", "value": "Hong Kong - Macau laissez-passer", "bkIdentityType": "B" },
        { "key": "9", "value": "Pass mainland residents to Taiwan", "bkIdentityType": "C" },
        { "key": "10", "value": "interim identity card", "bkIdentityType": "F" },
        { "key": "18", "value": "Hong Kong Identity Card", "bkIdentityType": "0" },
        { "key": "19", "value": "aiwan resident identity card", "bkIdentityType": "0" },
        { "key": "201", "value": "Organization Code Certificate", "bkIdentityType": "7" },
    ],
    //账户类型:1=活期; 2=定期 3=保证金 （预留：4=储蓄账户 5=AIO账户）
    accTypeList: [
        { "key": "201", "value": "单位活期存款（本币）", "transAble": "Y" },
        { "key": "205", "value": "单位委托存款（本币）", "transAble": "Y" },
        { "key": "541", "value": "贷款项下保证金活期(本币)", "transAble": "N" },
        { "key": "561", "value": "金融机构保证金活期(本币)", "transAble": "N" },
        { "key": "631", "value": "国际结算保证金活期(本币)", "transAble": "N" },
        { "key": "511", "value": "国内信用证保证金活期(本币)", "transAble": "N" },
        { "key": "531", "value": "非融资性保函保证金活期(本币)", "transAble": "N" },
        { "key": "521", "value": "融资性保函保证金活期(本币)", "transAble": "N" },
        { "key": "591", "value": "进口电汇保付加签保证金活期(本币)", "transAble": "N" },
        { "key": "501", "value": "信用证保证金活期(本币)", "transAble": "N" },
        { "key": "611", "value": "提单背书保证金活期(本币)", "transAble": "N" },
        { "key": "551", "value": "承兑汇票保证金活期(本币)", "transAble": "N" },
        { "key": "601", "value": "提货担保保证金活期(本币)", "transAble": "N" },
        { "key": "581", "value": "进口代收保付加签保证金活期(本币)", "transAble": "N" },
        { "key": "571", "value": "其它单位保证金活期(本币)", "transAble": "N" },
        { "key": "206", "value": "对公港币往来帐户", "transAble": "Y" },
        { "key": "202", "value": "单位活期存款（外币）", "transAble": "Y" },
        { "key": "606", "value": "提货担保保证金活期(外币)", "transAble": "N" },
        { "key": "566", "value": "金融机构保证金活期(外币)", "transAble": "N" },
        { "key": "586", "value": "进口代收保付加签保证金活期(外币)", "transAble": "N" },
        { "key": "516", "value": "国内信用证保证金活期(外币)", "transAble": "N" },
        { "key": "546", "value": "贷款项下保证金活期(外币)", "transAble": "N" },
        { "key": "526", "value": "融资性保函保证金活期(外币)", "transAble": "N" },
        { "key": "576", "value": "其它单位保证金活期(外币)", "transAble": "N" },
        { "key": "556", "value": "承兑汇票保证金活期(外币)", "transAble": "N" },
        { "key": "616", "value": "提单背书保证金活期(外币)", "transAble": "N" },
        { "key": "596", "value": "进口电汇保付加签保证金活期(外币)", "transAble": "N" },
        { "key": "621", "value": "国际结算保证金活期(外币)", "transAble": "N" },
        { "key": "626", "value": "资金业务保证金活期(外币)", "transAble": "N" },
        { "key": "536", "value": "非融资性保函保证金活期(外币)", "transAble": "N" },
        { "key": "506", "value": "信用证保证金活期(外币)", "transAble": "N" },
        { "key": "911", "value": "待划转暂记款项（外币）", "transAble": "Y" },
        { "key": "901", "value": "待划转暂记款项（本币）", "transAble": "Y" },
        { "key": "241", "value": "单位七天通知存款-自动转存（本币）", "transAble": "N" },
        { "key": "251", "value": "单位定期存款（本币）", "transAble": "N" },
        { "key": "252", "value": "单位协议存款（本币）", "transAble": "N" },
        { "key": "253", "value": "单位一天通知存款（本币）", "transAble": "N" },
        { "key": "254", "value": "单位七天通知存款（本币）", "transAble": "N" },
        { "key": "258", "value": "单位大额存单", "transAble": "N" },
        { "key": "295", "value": "智能定期-靠档型", "transAble": "N", },
        { "key": "296", "value": "智能定期-组合型", "transAble": "N", },
        { "key": "502", "value": "信用证保证金定期(本币)", "transAble": "N" },
        { "key": "512", "value": "国内信用证保证金定期(本币)", "transAble": "N" },
        { "key": "522", "value": "融资性保函保证金定期(本币)", "transAble": "N" },
        { "key": "532", "value": "非融资性保函保证金定期(本币)", "transAble": "N" },
        { "key": "542", "value": "贷款项下保证金定期(本币)", "transAble": "N" },
        { "key": "552", "value": "承兑汇票保证金定期(本币)", "transAble": "N" },
        { "key": "562", "value": "金融机构保证金定期(本币)", "transAble": "N" },
        { "key": "572", "value": "其它单位保证金定期(本币)", "transAble": "N" },
        { "key": "582", "value": "进口代收保付加签保证金定期(本币)", "transAble": "N" },
        { "key": "592", "value": "进口电汇保付加签保证金定期(本币)", "transAble": "N" },
        { "key": "602", "value": "提货担保保证金定期(本币)", "transAble": "N" },
        { "key": "612", "value": "提单背书保证金定期(本币)", "transAble": "N" },
        { "key": "632", "value": "国际结算保证金定期(本币)", "transAble": "N" },
        { "key": "503", "value": "信用证保证金协议存款(本币)", "transAble": "N" },
        { "key": "513", "value": "国内信用证保证金协议存款(本币)", "transAble": "N" },
        { "key": "523", "value": "融资性保函保证金协议存款(本币)", "transAble": "N" },
        { "key": "533", "value": "非融资性保函保证金协议存款(本币)", "transAble": "N" },
        { "key": "543", "value": "贷款项下保证金协议存款(本币)", "transAble": "N" },
        { "key": "553", "value": "承兑汇票保证金协议存款(本币)", "transAble": "N" },
        { "key": "563", "value": "金融机构保证金协议存款(本币)", "transAble": "N" },
        { "key": "573", "value": "其它单位保证金协议存款(本币)", "transAble": "N" },
        { "key": "583", "value": "进口代收保付加签保证金协议存款(本币)", "transAble": "N" },
        { "key": "593", "value": "进口电汇保付加签保证金协议存款(本币)", "transAble": "N" },
        { "key": "603", "value": "提货担保保证金协议存款(本币)", "transAble": "N" },
        { "key": "613", "value": "提单背书保证金协议存款(本币)", "transAble": "N" },
        { "key": "633", "value": "国际结算保证金协议存款(本币)", "transAble": "N" },
        { "key": "504", "value": "信用证保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "514", "value": "国内信用证保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "524", "value": "融资性保函保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "534", "value": "非融资性保函保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "544", "value": "贷款项下保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "554", "value": "承兑汇票保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "564", "value": "金融机构保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "574", "value": "其它单位保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "584", "value": "进口代收保付加签保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "594", "value": "进口电汇保付加签保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "604", "value": "提货担保保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "614", "value": "提单背书保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "634", "value": "国际结算保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "505", "value": "信用证保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "515", "value": "国内信用证保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "525", "value": "融资性保函保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "535", "value": "非融资性保函保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "545", "value": "贷款项下保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "555", "value": "承兑汇票保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "565", "value": "金融机构保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "575", "value": "其它单位保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "585", "value": "进口代收保付加签保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "595", "value": "进口电汇保付加签保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "605", "value": "提货担保保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "615", "value": "提单背书保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "635", "value": "国际结算保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "250", "value": "单位定期存款（外币）", "transAble": "N" },
        { "key": "256", "value": "单位七天通知存款（外币）", "transAble": "N" },
        { "key": "257", "value": "单位协议存款（外币）", "transAble": "N" },
        { "key": "259", "value": "大额单位外币定期存款", "transAble": "N" },
        { "key": "507", "value": "信用证保证金定期((外币)", "transAble": "N" },
        { "key": "517", "value": "国内信用证保证金定期((外币)", "transAble": "N" },
        { "key": "527", "value": "融资性保函保证金定期((外币)", "transAble": "N" },
        { "key": "537", "value": "非融资性保函保证金定期((外币)", "transAble": "N" },
        { "key": "547", "value": "贷款项下保证金定期((外币)", "transAble": "N" },
        { "key": "557", "value": "承兑汇票保证金定期((外币)", "transAble": "N" },
        { "key": "567", "value": "金融机构保证金定期((外币)", "transAble": "N" },
        { "key": "577", "value": "其它单位保证金定期((外币)", "transAble": "N" },
        { "key": "587", "value": "进口代收保付加签保证金定期((外币)", "transAble": "N" },
        { "key": "597", "value": "进口电汇保付加签保证金定期((外币)", "transAble": "N" },
        { "key": "607", "value": "提货担保保证金定期((外币)", "transAble": "N" },
        { "key": "617", "value": "提单背书保证金定期((外币)", "transAble": "N" },
        { "key": "622", "value": "国际结算保证金定期((外币)", "transAble": "N" },
        { "key": "627", "value": "资金业务保证金定期((外币)", "transAble": "N" },
        { "key": "508", "value": "信用证保证金协议存款((外币)", "transAble": "N" },
        { "key": "518", "value": "国内信用证保证金协议存款((外币)", "transAble": "N" },
        { "key": "528", "value": "融资性保函保证金协议存款((外币)", "transAble": "N" },
        { "key": "538", "value": "非融资性保函保证金协议存款((外币)", "transAble": "N" },
        { "key": "548", "value": "贷款项下保证金协议存款((外币)", "transAble": "N" },
        { "key": "558", "value": "承兑汇票保证金协议存款((外币)", "transAble": "N" },
        { "key": "568", "value": "金融机构保证金协议存款((外币)", "transAble": "N" },
        { "key": "578", "value": "其它单位保证金协议存款((外币)", "transAble": "N" },
        { "key": "588", "value": "进口代收保付加签保证金协议存款((外币)", "transAble": "N" },
        { "key": "598", "value": "进口电汇保付加签保证金协议存款((外币)", "transAble": "N" },
        { "key": "608", "value": "提货担保保证金协议存款((外币)", "transAble": "N" },
        { "key": "618", "value": "提单背书保证金协议存款((外币)", "transAble": "N" },
        { "key": "623", "value": "国际结算保证金协议存款((外币)", "transAble": "N" },
        { "key": "628", "value": "资金业务保证金协议存款((外币)", "transAble": "N" },
        { "key": "510", "value": "信用证保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "520", "value": "国内信用证保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "530", "value": "融资性保函保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "540", "value": "非融资性保函保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "550", "value": "贷款项下保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "560", "value": "承兑汇票保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "570", "value": "金融机构保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "580", "value": "其它单位保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "590", "value": "进口代收保付加签保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "600", "value": "进口电汇保付加签保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "610", "value": "提货担保保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "620", "value": "提单背书保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "625", "value": "国际结算保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "630", "value": "资金业务保证金七天通知存款((外币)", "transAble": "N" },
        { "key": "280", "value": "对公定期主账户（本币）", "transAble": "N" },
        { "key": "490", "value": "承兑保证金主账户（本币）", "transAble": "N" },
        { "key": "552", "value": "承兑汇票保证金定期(本币)", "transAble": "N" },
        { "key": "553", "value": "承兑汇票保证金协议存款(本币)", "transAble": "N" },
        { "key": "554", "value": "承兑汇票保证金一天通知存款(本币)", "transAble": "N" },
        { "key": "555", "value": "承兑汇票保证金七天通知存款(本币)", "transAble": "N" },
        { "key": "241", "value": "单位七天通知存款-自动转存（本币）", "transAble": "N" },
        { "key": "251", "value": "单位定期存款（本币）", "transAble": "N" },
        { "key": "253", "value": "单位一天通知存款（本币）", "transAble": "N" },
        { "key": "254", "value": "单位七天通知存款（本币）", "transAble": "N" }
    ],
    postingRestrictList: [
        { "code": "201", "desc": "Account Frozen - Deceased"},
        { "code": "202", "desc": "Account Frozen - Bankruptcy / Winding-up / Liquidation"},
        { "code": "203", "desc": "Account Frozen - Court Order"},
        { "code": "204", "desc": "Account Frozen - Instructed by Internal Department"},
        { "code": "205", "desc": "Account Frozen - Instructed by Regulatory / Enforcement Unit"},
        { "code": "206", "desc": "Account Frozen - Others"},
        { "code": "210", "desc": "Tax Recovery"},
        { "code": "211", "desc": "Frozen for AFT,EFT,PCL, ATM, TBS, iBanking etc.. Accept deposit and withdrawal require manager override for teller transaction"},
        { "code": "212", "desc": "Currency not activiated"},
        { "code": "220", "desc": "Bad Account Status"},
        { "code": "221", "desc": "Loss of Chop"},
        { "code": "222", "desc": "Account Charges"},
        { "code": "223", "desc": "Supervisor Override Required for Cheque Deposit"},
        { "code": "224", "desc": "Override Required for Withdrawal Transaction"},
        { "code": "225", "desc": "Loss of Passbook or Certificate of Deposit"},
        { "code": "226", "desc": "Two or More Signature"},
        { "code": "227", "desc": "Withdrawal must be at Domicile Branch"},
        { "code": "301", "desc": "Refer to Record Card - Contact Dom Br"},
        { "code": "302", "desc": "Refer to Record Card - Collect Chq.Book at Dom Br"},
        { "code": "303", "desc": "Refer to Record Card - Collect Rtn Chq at Dom Br"},
        { "code": "304", "desc": "Refer to Record Card - Update Contact Num and Addr"},
        { "code": "305", "desc": "Refer to Record Card - Incomplete A/C Document"},
        { "code": "306", "desc": "Refer to Record Card - Update ID Required"},
        { "code": "307", "desc": "Refer to Record Card - Chq Book Order not Allowed"},
        { "code": "308", "desc": "Refer to Record Card - Staff Witness Required"},
        { "code": "309", "desc": "Refer to Record Card - Refer all Debit Trxns"},
        { "code": "310", "desc": "Refer to Record Card - Refer all Credit Trxns"},
        { "code": "311", "desc": "Refer to Record Card - Hold Mail Form Required"},
        { "code": "312", "desc": "Refer to Record Card - Additional Customer Info. Required"},
        { "code": "313", "desc": "Refer to Record Card - SME Loan Guarantee Scheme Customer"},
        { "code": "314", "desc": "Refer to Record Card - Special Signature Arrangement"},
        { "code": "315", "desc": "Refer to Record Card - FATCA"},
        { "code": "316", "desc": "Refer to Record Card - Service Confirmation req'd ATM"},
        { "code": "317", "desc": "Refer to Record Card - Service Confirmation req'd TBS"},
        { "code": "318", "desc": "Refer to Record Card - FATCA Review Required"},
        { "code": "319", "desc": "Refer to Record Card - Loss of Personal Identity Doc"},
        { "code": "320", "desc": "Refer to Record Card - Fraudulent Use of Lost ID"},
        { "code": "321", "desc": "Refer to Record Card - HKID Reissued. CIF check HKID Issue Date"},
        { "code": "TBC", "desc": "Full Demand Payment"},
    ],
    checkPostingRestrict: function(val){
        for (let item of this.postingRestrictList) {
            if (item.code == val) {
                return true;
            }
        }
        return false;
    },
    currTypeList: [
        { key: 'CNY', currType: "Chinese money", bkIdentityType: "A" },
        { key: 'HKD', currType: "Hong Kong currency", bkIdentityType: "U" },
        { key: 'USD', currType: "dollar", bkIdentityType: "B" },
        { key: 'EUR', currType: "Euro", bkIdentityType: "C" },
        { key: 'GBP', currType: "pound", bkIdentityType: "E" },
        { key: 'JPY', currType: "yen", bkIdentityType: "G" },
        { key: 'SGD', currType: "Singapore currency", bkIdentityType: "H" },
    ],
    limitTypeList: [
        { key: 'P', currType: "HKD Bill Payment Cycle Limit", bkIdentityType: "A" },
        { key: 'T', currType: "Transfer Cycle Limit", bkIdentityType: "U" },
        { key: 'F', currType: "Fixed Deposit Cycle Limit", bkIdentityType: "B" },
    ],
    getLimitType: function (val) {
        for (let item of this.limitTypeList) {
            if (item.key == val) {
                return item.currType;
            }
        }
    },
    limitSttList: [
        { key: '0', currType: "Approve", bkIdentityType: "A" },
        { key: '1', currType: "Active", bkIdentityType: "U" },
        { key: '2', currType: "Cancel", bkIdentityType: "B" },
        { key: '3', currType: "Delete", bkIdentityType: "C" },
        { key: '4', currType: "待审核", bkIdentityType: "E" },
        { key: '5', currType: "Refused", bkIdentityType: "G" },
    ],
    getLimitStt: function (val) {
        for (let item of this.limitSttList) {
            if (item.key == val) {
                return item.currType;
            }
        }
    },
    BranchStt: function (data) {
        switch (data) {
            case '0':
                return "Active";
            case '1':
                return "Suspended";
            case '2':
                return "Cancle";
            default:
                return '';
        }
    },
    BranchLevel: function (data) {
        switch (data) {
            case '3':
                return "Subbranch";
            case '1':
                return "Head office";
            case '2':
                return "Branch";
            default:
                return '';
        }
    },
    imBsnList: [ //内管菜单
        { "bsnCode": "IM01", "bsnName": "System Management", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0101", "bsnName": "Branch Management", "parentBsnCode": "IM01", "parentBsnName": "System Management" },
        { "bsnCode": "IM0102", "bsnName": "Role Management", "parentBsnCode": "IM01", "parentBsnName": "System Management" },
        { "bsnCode": "IM0103", "bsnName": "Operator Management", "parentBsnCode": "IM01", "parentBsnName": "System Management" },
        { "bsnCode": "IM0104", "bsnName": "Authorization Mode Management", "parentBsnCode": "IM01", "parentBsnName": "System Management" },

        { "bsnCode": "IM02", "bsnName": "Service Control", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0201", "bsnName": "Visit Frequency Control", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },
        { "bsnCode": "IM0202", "bsnName": "Number of connections", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },
        { "bsnCode": "IM0203", "bsnName": "System Settings", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },
        { "bsnCode": "IM0204", "bsnName": "Application Settings", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },
        { "bsnCode": "IM0205", "bsnName": "Tropical Cyclone Warning", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },
        { "bsnCode": "IM0206", "bsnName": "Holidays", "parentBsnCode": "IM02", "parentBsnName": "Service Control" },

        { "bsnCode": "IM03", "bsnName": "Authorization Center", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0301", "bsnName": "System Management Authorization", "parentBsnCode": "IM03", "parentBsnName": "Authorization Center" },
        { "bsnCode": "IM0302", "bsnName": "Transaction Authorization", "parentBsnCode": "IM03", "parentBsnName": "Authorization Center" },
        { "bsnCode": "IM0303", "bsnName": "Service Control Authorizaion", "parentBsnCode": "IM03", "parentBsnName": "Authorization Center" },

        { "bsnCode": "IM04", "bsnName": "TBS", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0401", "bsnName": "New Account", "parentBsnCode": "IM04", "parentBsnName": "TBS" },
        { "bsnCode": "IM0402", "bsnName": "Change Account", "parentBsnCode": "IM04", "parentBsnName": "TBS" },
        { "bsnCode": "IM0403", "bsnName": "Transaction Enquiry", "parentBsnCode": "IM04", "parentBsnName": "TBS" },
        { "bsnCode": "IM0404", "bsnName": "Account Enquiry", "parentBsnCode": "IM04", "parentBsnName": "TBS" },
        { "bsnCode": "IM0405", "bsnName": "Request PIN", "parentBsnCode": "IM04", "parentBsnName": "TBS" },
        { "bsnCode": "IM0406", "bsnName": "Print PIN Mailer", "parentBsnCode": "IM04", "parentBsnName": "TBS" },

        { "bsnCode": "IM05", "bsnName": "Transaction Limit Management", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0501", "bsnName": "Account Limit", "parentBsnCode": "IM05", "parentBsnName": "Transaction Limit Management" },
        { "bsnCode": "IM0502", "bsnName": "Bank Limit Settings", "parentBsnCode": "IM05", "parentBsnName": "Transaction Limit Management" },

        { "bsnCode": "IM06", "bsnName": "Enquiry Management", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0601", "bsnName": "Operator log Enquiry", "parentBsnCode": "IM06", "parentBsnName": "Enquiry Management" },


        { "bsnCode": "IM07", "bsnName": "Personal Settings", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0701", "bsnName": "Shortcut", "parentBsnCode": "IM07", "parentBsnName": "Personal Settings" },

        { "bsnCode": "IM08", "bsnName": "Report Download", "parentBsnCode": "", "parentBsnName": "" },
        { "bsnCode": "IM0801", "bsnName": "Report Download", "parentBsnCode": "IM07", "parentBsnName": "Report Download" },

    ],
    channels: [ //用户开通渠道:DEFAULT‘00000000’,0未开通 1开通。第一位：企业网银 第二位：银企直连 第3位：企业手机 其它为预留字段
        { "key": "CPB", "channel": "Phone Bank" },
        { "key": "CCB", "channel": "PhoneBank" },
        { "key": "10000000", "channel": "PhoneBank" },
        { "key": "00010000", "channel": "host to host" },
        { "key": "10100000", "channel": "Enterprise net silver,PhoneBank" }
    ],
    getChannel: function (val) {
        for (let item of this.channels) {
            if (item.key == val) {
                return item.channel;
            }
        }
    },
    imBsnName: function (val) { //获取内管菜单名称
        for (let item of this.imBsnList) {
            if (item.bsnCode == val) {
                return item.bsnName;
            }
        }
    },
    certTypeDict: function (keyVal) {
        for (let item of this.certTypeDictList) {
            if (item.key == keyVal) {
                return item.value;
            }
        }
    },

    currTypeDict: function (keyVal) {
        for (let item of this.currTypeList) {
            if (item.key == keyVal) {
                return item.currType;
            }
        }
    },
    accTypeDict: function (keyVal) {
        for (let item of this.accTypeList) {
            if (item.key == keyVal) {
                return item.value;
            }
        }
    },
    transAbleDict: function (keyVal) {
        for (let item of this.accTypeList) {
            if (item.key == keyVal) {
                return item.transAble;
            }
        }
    },
    accStatus: function (data) {
        switch (data) {
            case '0':
                return "Active";
            case '1':
                return "subpend";
            case '2':
                return "Delete";
        }
    },
    actionStatus: function (data) {
        switch (data) {
            case '0':
                return "Success";
            case '1':
                return "failed";

            default:
                return "failed";
        }
    },
    reqStatus: function (data) {
        switch (data) {
            case 'C':
                return "Complete";
            case 'P':
                return "Process";
            case 'N':
                return "Not Print";
        }
    },
    CRYTrans: function (data) {
        switch (data) {
            case "CNY":
                return "Chinese money";
            case "HKD":
                return "Hong Kong currency";
            case "USD":
                return "dollar";
            case "EUR":
                return "Euro";
            case "GBP":
                return "pound";
            case "JPY":
                return "yen";
            case "SGD":
                return "Singapore currency";
            default:
                return '';
        }
    },
    userSex: function (data) {
        switch (data) {
            case "F":
                return "Female";
            case "M":
                return "Male";
        }
    },
    userStt: [ //用户状态
        { "key": "0", "userStt": "Active" },
        { "key": "1", "userStt": "suspended" },
        { "key": "2", "userStt": "Pause" },
        { "key": "3", "userStt": "Cancel" },
        { "key": "4", "userStt": "维护中" },
        { "key": "5", "userStt": "永久冻结" }

    ],
    getUserStt: function (val) {
        for (let item of this.userStt) {
            if (item.key == val) {
                return item.userStt;
            }
        }
    },
}